<script >
export default {
    data() {
        return {
            selected: '',
            number: ''
        }
    }
}
</script>

<template>
    <select v-model="selected">
        <option disabled value="">Please select one</option>
        <option :value="{ number: 1 }">A</option>
        <option :value="{ number: 2 }">B</option>
        <option :value="{ number: 3 }">C</option>
        <!-- 内联对象字面量 -->
        <option :value="{ number: 4 }">D</option>

    </select>
    select:{{ selected.number }}
</template>

<style scoped></style>
